home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / axes2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-13  |  854 b   |  32 lines

  1. //   This class operate with two pares of axes : X1-Y1 and X2-Y2.
  2.  
  3. #ifndef __AXES2_H_
  4. #define  __AXES2_H_
  5.  
  6. #include "h_v_axes.h"
  7.  
  8. enum { HORIZ1, VERT1, HORIZ2, VERT2 };
  9.  
  10. class Axes2
  11.     {
  12.     protected:
  13.     HV_Axes* horiz_axe;
  14.     HV_Axes* vert_axe;
  15.     HV_Axes* horiz_axe_2;
  16.     HV_Axes* vert_axe_2;
  17.     public:
  18.     Axes2();
  19.     ~Axes2()
  20.         { delete horiz_axe; delete vert_axe;
  21.           delete horiz_axe_2; delete vert_axe_2; }
  22.  
  23.     void cross(rect coord, loc zero);   // Draw beginning of the coord.
  24.     void set_axe(int which_axe, int axe_len,
  25.         double start = 0, double end = 0,
  26.         int tick_no = 0, int* ticks_on_axe = NULL,
  27.         int s_tick_no = 0, int* sub_ticks_on_axe = NULL,
  28.         char** legends_on_axe = NULL, int text_direction = HORIZ_DIR);
  29.     void show(loc left_top_of_axe, int ax_color, int legends_color);
  30.     };
  31.  
  32. #endif __AXES2_H_